import{getgooddetailmessage}from "../actionType"

/* 仓库数据 */
const initialstate = {
    message: {},
    test:123
}

/* 执行方法 */
export default (state = initialstate, { type, payload }) => {
let newgoodlist=JSON.parse(JSON.stringify(state))//深拷贝
    switch (type) {
        case getgooddetailmessage: newgoodlist.message=payload.message; break;
        default:break;
    }
    return newgoodlist
}